<?php
/**
 * 模块logo
 */
namespace Api;
use Controller\Modules as ModulesC;
use Kuyuan\WqCore\util\Util;

class Modules
{
    private $Modules = null;
    public function __construct()
    {
        $this->Modules = new ModulesC();
    }

    /**
     * 获取模块的名字和logo
     */
    public function getNameLogo()
    {
        Util::appointGet();
        if(!$_data = $this->Modules->get(array("title","logo"))){
            $_result = array("code"=>100);
        } else {
            $_result = array("code"=>0,"data"=>$_data);
        }
        unset($_data);
        Util::returns($_result);
    }
}